package com.jjs.jcenterdemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.white.commonlib.manager.LogManager;

import org.sufficientlysecure.htmltextview.HtmlHttpImageGetter;
import org.sufficientlysecure.htmltextview.HtmlTextView;

public class RippleBmpActivity extends AppCompatActivity
{
    HtmlTextView html;

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ripple_bmp);
        html = (HtmlTextView) findViewById(R.id.html_text);
        html.post(new Runnable()
        {
            @Override
            public void run()
            {
                int wid = html.getMeasuredWidth();
                LogManager.e("width = " + wid);
            }
        });
//        html.setHtml("当常数P>0时，幂级数<img src=\"http://img.ppkao.com/2015-10/liuziyi/2015102616305122158.jpg\" />在其收敛区间右端点处敛散性（）？",
//                new HtmlHttpImageGetter(html));
    }
}
